package lab_07.com.acme;


public class Arrays {
	public static void main(String[] args) {
		int [] array = new int [5];
		System.out.println("Third element is: " + array[2]);
		
		for (int i=0; i < array.length; i++) {
			array[i] = i+1;
		}
		
		
		System.out.println("array length is: " + array.length);
		
		//System.out.println("Sixth element is: " + array[5]);
		// Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
		
	}
}
